<!DOCTYPE HTML>
<html lang="ja">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=no">
		<title>カメラの映像を映す</title>
	</head>

	<body>
		
		<video autoplay>
		
		<script>
			var video = document.getElementsByTagName("video")[0];
			navigator.getUserMedia("video", function (s){
				video.src = s;
			})
		</script>
		
	</body>
</html>
